package com.cy.ppj.model.enums.banner;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

import com.cy.ppj.model.vo.BannerTypeVO;

import lombok.Getter;

/**
 * banner 类型
 *
 * @author: tanyilin
 * @create: 2018年9月20日 下午5:14:47
 */
public enum BannerType {

	HOME_PAGE("首页"),
	BROKER_INDEX("经纪人主页")
	;
	
	@Getter
	private String remark;

	private BannerType(String remark) {
		this.remark = remark;
	}
	
	private static final List<BannerTypeVO> typeList;
	
	static {
		typeList = new ArrayList<>();
		Stream.of(BannerType.values()).forEach(b -> {
			BannerTypeVO vo = new BannerTypeVO();
			vo.setType(b);
			vo.setRemark(b.getRemark());
			typeList.add(vo);
		});
	}
	
	public static List<BannerTypeVO> getBannerTypeList() {
		return typeList;
	}
}
